From d3ade5add3fca79187694e7b0757bccd066fe7f7 Mon Sep 17 00:00:00 2001 From: Sebastian Keller Date: Fri, 17 Oct 2025 20:05:53 +0200 Subject: [PATCH] messageList: Fall back to generic policy if media message has no app That way the notification at least still follows the global settings. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8740 Part-of: --- js/ui/messageList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/messageList.js b/js/ui/messageList.js index ee4f7e258..dfcc69d81 100644 --- a/js/ui/messageList.js +++ b/js/ui/messageList.js @@ -841,7 +841,7 @@ class MediaMessage extends Message { this._updateNavButton(this._prevButton, this._player.canGoPrevious); this._updateNavButton(this._nextButton, this._player.canGoNext); - const appId = this._player.app?.id.replace(/\.desktop$/, ''); + const appId = this._player.app?.id.replace(/\.desktop$/, '') ?? 'generic'; if (this._policy?.id !== appId) { this._policy?.disconnectObject(this); -- 2.39.5